Software Load

The /files/software URL provides the ability to modify the device software load. Uploading of the software load triggers a device reset to activate it.

URL

/api/v1/files/software

HTTP Method

PUT

HTTP Responses

200 OK
400 Bad request – provided software load is incorrect.
409 Conflict – software load can’t be applied due to the current device state (e.g. synchronization with the redundant device is in progress).

Example

Request:
PUT /api/v1/files/software HTTP/1.1
Host: 10.4.219.229
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
 
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="software.cmp"
Content-Type: application/octet-stream
 
<cmp file>
------WebKitFormBoundary7MA4YWxkTrZu0gW-- 
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "description": "Device will reset now to activate new software load"
} 

or

HTTP/1.1 409 Conflict
Content-Type: application/json
{
    "description": "Device is currently performing HA synchronization"
}